Dynomotion

Group: DynoMotion Message: 10373 From: cnc_machines Date: 10/24/2014
Subject: KStep Digital IO
Greetings,

I am trying to set up my limit switches on the Kstep board. In doing so I have wired 24V+ to pin 8 on Kstep JP33. I am then grounding any of the pins 9-24 to see if I have it wired up correctly. I am monitoring the "Virtual /KStep" screen under "Digital IO" and the box doesnt change state when I ground any of the pins.

Could I be doing something wrong? Does a setting need to be changed, or a program running to check the state of these bits?

Maybe I am missing something on the configuration side?

Thanks,

Scott


Group: DynoMotion Message: 10374 From: Moray Cuthill Date: 10/24/2014
Subject: Re: KStep Digital IO
Scott,
 
you need to add the following line to your init file-

KStepPresent=TRUE;

 

Or for testing you can simply open a thread in the C Program editor in KMotion, and just run that line along with the usual include line and main function such as-

#include "KMotionDef.h"

main()
{
KStepPresent=TRUE;


}

Moray


On Fri, Oct 24, 2014 at 9:46 PM, cnc_machines@... [DynoMotion] <DynoMotion@yahoogroups.com> wrote:
 

Greetings,

I am trying to set up my limit switches on the Kstep board. In doing so I have wired 24V+ to pin 8 on Kstep JP33. I am then grounding any of the pins 9-24 to see if I have it wired up correctly. I am monitoring the "Virtual /KStep" screen under "Digital IO" and the box doesnt change state when I ground any of the pins.

Could I be doing something wrong? Does a setting need to be changed, or a program running to check the state of these bits?

Maybe I am missing something on the configuration side?

Thanks,

Scott



Group: DynoMotion Message: 10375 From: Tom Kerekes Date: 10/24/2014
Subject: Re: KStep Digital IO
Hi Scott,

To have KFLOP update the Digital Status you must tell KFLOP that a KSTEP is connected by executing this line of C code:

KStepPresent=TRUE;

See the section on Digital Status here:

HTH
Regards
TK



From: "cnc_machines@... [DynoMotion]" <DynoMotion@yahoogroups.com>
To: DynoMotion@yahoogroups.com
Sent: Friday, October 24, 2014 1:46 PM
Subject: [DynoMotion] KStep Digital IO

 
Greetings,

I am trying to set up my limit switches on the Kstep board. In doing so I have wired 24V+ to pin 8 on Kstep JP33. I am then grounding any of the pins 9-24 to see if I have it wired up correctly. I am monitoring the "Virtual /KStep" screen under "Digital IO" and the box doesnt change state when I ground any of the pins.

Could I be doing something wrong? Does a setting need to be changed, or a program running to check the state of these bits?

Maybe I am missing something on the configuration side?

Thanks,

Scott



Group: DynoMotion Message: 10376 From: cnc_machines Date: 10/24/2014
Subject: Re: KStep Digital IO
Well.. I just reread the KStep configuration and see that I need to initiate the multiplexer in the init file. Did that and it is working great.
Group: DynoMotion Message: 10403 From: cnc_machines Date: 10/28/2014
Subject: Re: KStep Digital IO
Thanks again everyone for the helpful responses!